﻿using Net.Web.Framework.UI.Paging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Net.Web.Models.Companys
{
    /// <summary>
    /// 公司筛选
    /// </summary>
    public class CompanyPagingFilteringModel : BasePageableModel
    {
        public CompanyPagingFilteringModel()
        {
            this.PageSizeOptions = new List<SelectListItem>();
            this.AvailableCity = new List<SelectListItem>();
            this.AvailableSortOptions = new List<SelectListItem>();
            this.AvailableExtend = new List<CompanyExtendModel>();
        }

        /// <summary>
        /// 城市
        /// </summary>
        public IList<SelectListItem> AvailableCity { get; set; }

        /// <summary>
        /// 所选城市
        /// </summary>
        public int City { get; set; }

        /// <summary>
        /// 分页选项
        /// </summary>
        public IList<SelectListItem> PageSizeOptions { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderBy { get; set; }

        /// <summary>
        /// Company sorting
        /// </summary>
        public string ViewMode { get; set; }

        /// <summary>
        /// 排序选项
        /// </summary>
        public IList<SelectListItem> AvailableSortOptions { get; set; }

        /// <summary>
        /// 属性
        /// </summary>
        public List<CompanyExtendModel> AvailableExtend { get; set; }
    }
}